#-*- coding:gbk -*-
'''
Created on 2012-7-20

@author: xxy
'''

class Enum(object): 
    def __init__(self, *arguments):  
        print arguments 
        idx = 0
        for name in arguments: 
            if '=' in name: 
                name,val = name.rsplit('=', 1)   
                if val.isalnum():   
                    idx = eval(val) 
            setattr(self, name.strip(), idx) 
            idx = idx + 1


class SELECT_TYPE(object):
    READ = 0
    WRITE = 1
    ERROR = 2

